package top.tangyh.lamp.common.constant;

import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * icu常量
 */
public class ObsvConstant {

	public final static int YES_NUMBER = 1;
	public final static int NO_NUMBER = 0;


	/**
	 * 观察项类型在数据字典中编码
	 */
	public final static String DICT_KEY_OBSV_TYPE = "obsv_cfg_obsvType";
	/**
	 * 观察项类型为呼吸
	 */
	public final static String OBSV_TYPE_BREATHE = "breathe";
	/**
	 * 设务绑定呼机机
	 */
	public final static String DEV_BIND_BREATHE = "2";
	/**
	 * 枚取类型
	 */
	public final static String TYPE_ENUM = "enum";
	/**
	 * 结构体类型
	 */
	public final static String TYPE_STRUCT = "struct";
	/**
	 * 整数类型
	 */
	public final static String TYPE_INT = "integer";
	/**
	 * 实数类型
	 */
	public final static String TYPE_FLOAT = "float";

	/**
	 * 创建时数所来自用户手工填写
	 */
	public final static String CREATE_SOURCE_HAND = "hand";
	/**
	 * 创建时数所来自设备
	 */
	public final static String CREATE_SOURCE_DEV = "dev";

	/**
	 * 复合类型 --枚举、结构体
	 */
	public static Set<String> COMPLEX_TYPE;

	static {
		COMPLEX_TYPE = Stream.of(TYPE_ENUM, TYPE_STRUCT).collect(Collectors.toSet());
	}

}